﻿#ifndef JZNODE_DISPLAY_ITEM_H_
#define JZNODE_DISPLAY_ITEM_H_

#include "JZNodeGraphItem.h"

//JZNodeDisplayItem
class JZImageLabel;
class JZNodeDisplayItem : public JZNodeGraphItem
{
public:
    JZNodeDisplayItem(JZNode *node);

    void setValue(int pin,QVariantPtr *ref);
    void clearValue(int pin);
    void clearValues();

protected:
    virtual void updatePin() override;    

    void onAddClicked();
    void onLabelExpand(JZImageLabel *label);
    void updateGraphics();

    QString getInputType(int id);

    BlockPtr m_addBlock;
};


#endif
